public class MaxModify {
    public static void main(String[] args) {
        int max1 = max(10,8);
        double max2 = max(12.5,7.9,32.1);
        System.out.println(max1 + " " + max2);
    }
    public static int max(int x,int y){
        int i = x > y ? x : y;
        return i;
    }
    public static double max(double x,double y,double z){
        double i = x > y ? x : y;
        i = i > z ? i : z;
        return i;
    }
}
